package com.example.benefitcommunity.enums;

import lombok.Getter;

/**
 * @author Administrator
 * 枚举
 */
@Getter
public enum StatusCode {
    /**
     * 状态
     * 成功
     * 重定向
     * 客户端
     * 服务端
     */
    SUCCESS(200, "ok"),
    REDIRECT(300, "redirect"),
    ERROR(400, "client error"),
    SERVER(500, "server error");

    private final int code;
    private final String msg;

    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
